package com.yuelife.service.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:SCommon构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "SCommon",value = "SCommon")
@Table(name="s_common")
public class SCommon implements Serializable{

	@ApiModelProperty(value = "主键评论(自增长)",required = false)
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "commonId")
	private Integer commonId;//主键评论(自增长)

	@ApiModelProperty(value = "店铺id",required = false)
    @Column(name = "storeId")
	private Integer storeId;//店铺id

	@ApiModelProperty(value = "评论详情",required = false)
    @Column(name = "content")
	private String content;//评论详情

	@ApiModelProperty(value = "星数",required = false)
    @Column(name = "star")
	private String star;//星数

	@ApiModelProperty(value = "评论用户",required = false)
    @Column(name = "uid")
	private Integer uid;//评论用户

	@ApiModelProperty(value = "评论时间",required = false)
    @Column(name = "create_time")
	private Date createTime;//评论时间

	@ApiModelProperty(value = "评论订单条目(评论那个订单)",required = false)
    @Column(name = "orderId")
	private Integer orderId;//评论订单条目(评论那个订单)

	@ApiModelProperty(value = "评论分类",required = false)
    @Column(name = "classmessage")
	private String classmessage;//评论分类

	@ApiModelProperty(value = "卖家回复内容",required = false)
    @Column(name = "reply")
	private String reply;//卖家回复内容

	@ApiModelProperty(value = "卖家回复时间",required = false)
    @Column(name = "reply_time")
	private Date replyTime;//卖家回复时间

	@ApiModelProperty(value = "评论的商品",required = false)
    @Column(name = "serviceId")
	private Integer serviceId;//评论的商品

	@ApiModelProperty(value = "图片",required = false)
    @Column(name = "img")
	private String img;//图片

	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	//get方法
	public Integer getCommonId() {
		return commonId;
	}

	//set方法
	public void setCommonId(Integer commonId) {
		this.commonId = commonId;
	}
	//get方法
	public Integer getStoreId() {
		return storeId;
	}

	//set方法
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	//get方法
	public String getContent() {
		return content;
	}

	//set方法
	public void setContent(String content) {
		this.content = content;
	}
	//get方法
	public String getStar() {
		return star;
	}

	//set方法
	public void setStar(String star) {
		this.star = star;
	}
	//get方法
	public Integer getUid() {
		return uid;
	}

	//set方法
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	//get方法
	public Date getCreateTime() {
		return createTime;
	}

	//set方法
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	//get方法
	public Integer getOrderId() {
		return orderId;
	}

	//set方法
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	//get方法
	public String getClassmessage() {
		return classmessage;
	}

	//set方法
	public void setClassmessage(String classmessage) {
		this.classmessage = classmessage;
	}
	//get方法
	public String getReply() {
		return reply;
	}

	//set方法
	public void setReply(String reply) {
		this.reply = reply;
	}
	//get方法
	public Date getReplyTime() {
		return replyTime;
	}

	//set方法
	public void setReplyTime(Date replyTime) {
		this.replyTime = replyTime;
	}
	//get方法
	public Integer getServiceId() {
		return serviceId;
	}

	//set方法
	public void setServiceId(Integer serviceId) {
		this.serviceId = serviceId;
	}
	//get方法
	public String getImg() {
		return img;
	}

	//set方法
	public void setImg(String img) {
		this.img = img;
	}


}
